package com.gome.han.springcloud.api.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gome.han.springcloud.api.bean.User;

/**
* @author hanpeng
* @version 创建时间：2020年8月9日 上午7:24:05
* @ClassName 类名称
* @Description 类描述
* 对应的哪个微服务
* fallbackFactory=UserServiceFactory.class 指的是降级服务
*/
@FeignClient(value="SPRING-CLOUD-PROVIDER1",fallback=FallbackUservice.class)
public interface UserService {
	@RequestMapping("/getUser/{age}")
	User getUser(@PathVariable("age") Integer age);
}
